package com.maltys.dynamicdatasource.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.maltys.dynamicdatasource.dao.UserMapper;
import com.maltys.dynamicdatasource.domain.entity.User;
import com.maltys.dynamicdatasource.service.IUserService;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {
    @Override
    public User getUserInfoByUid(Long uid) {
        User one = this.getOne(Wrappers.<User>lambdaQuery().eq(User::getUid, uid));
        return one;
    }
}
